﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace T4task1
{
    public partial class frmSUI : Form
    {
        public frmSUI()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            this.Text = "欢迎来到本软件！";
        }
        //关闭窗口提示
        private void frm_FormClosing(object sender, FormClosingEventArgs e)
        {
            DialogResult result = MessageBox.Show("确定要关闭此用户吗？", "提示：", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (result == DialogResult.Yes)
            {

            }
            else
            {
                e.Cancel = true;
            }
        }
        //点击启动窗口跳转主窗口
        private void frmSUI_Click(object sender, EventArgs e)
        {
            Hide();
            frmSUI2 sUI2 = new frmSUI2();
            
            sUI2.Show();
            
        }
    }
}
